Turn GtkExpression into a GTypeInstance
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 1 Jun 2020 20:07:53 +0000 (21:07 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 1 Jun 2020 20:07:53 +0000 (21:07 +0100)
commitebaa96c0fadf4081fc772a01b76b3821b138eee4
tree16d56d5c0dbca38aa782f2bcdb0fc548263eb64b
parentfb3d08c651d5aa71df5022a2af9237b9e14056d4
Turn GtkExpression into a GTypeInstance

Since it's a type with sub-classes, we need to use GTypeInstance (at the
very least), otherwise we won't be able to address each sub-class as
such.

This is similar to how GskRenderNode and GdkEvent are handled, with the
added difficulty that GtkExpression is meant to be used in properties,
in order to be deserialised by GtkBuilder. This requires adding a
GParamSpec sub-class that we can match on from within GtkBuilder,
alongside some convenience API for storing a GtkExpression inside a
GValue.
gtk/gtkbuilder.c
gtk/gtkdropdown.c
gtk/gtkexpression.c
gtk/gtkexpression.h
gtk/gtknumericsorter.c
gtk/gtkstringfilter.c
gtk/gtkstringsorter.c